#ifndef WIDGETNODEPHYSICAL_H
#define WIDGETNODEPHYSICAL_H

#include <QWidget>
#include "../entity/EntitySceneNode.h"

namespace Ui {
class WidgetNodePhysical;
}

class WidgetNodePhysical : public QWidget
{
    Q_OBJECT

public:
    explicit WidgetNodePhysical(QWidget *parent = nullptr);
    ~WidgetNodePhysical();

public slots:
    void setupNode(const QString& name);

private slots:
    void on_checkBoxEnable_checkStateChanged(const Qt::CheckState &state);

    void on_checkBoxStatic_checkStateChanged(const Qt::CheckState &state);

    void on_toolButtonAddShape_clicked();

    void on_toolButtonDelShape_clicked();

    void on_pushButtonApply_clicked();

private:
    void physicsEnable(bool enable);

private:
    Ui::WidgetNodePhysical *ui;
    std::shared_ptr<EntitySceneNode> _currentNode;
};

#endif // WIDGETNODEPHYSICAL_H
